TEMPLATE = lib

#CONFIG += dll
CONFIG += staticlib
CONFIG+=debug_and_release

macx{
	CONFIG -= dll
        CONFIG += lib_bundle
}

TARGET = QtZint2
VERSION = 2.4.3

INCLUDEPATH += ../backend


DEFINES += NO_PNG  _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_WARNINGS ZINT_VERSION=\\\"$$VERSION\\\"

!contains(DEFINES, NO_PNG) {
    SOURCES += ../backend/png.c
#    CONFIG(debug, debug|release){
#        LIBS += -L ../../libpng/DebugLibrary -llibpng16
#    } else {
#        LIBS += -L ../../libpng/ReleaseLibrary -llibpng16
#    }
}

HEADERS +=  ../backend/aztec.h \
            ../backend/code1.h \
            ../backend/code49.h \
            ../backend/common.h \
            ../backend/composite.h \
            ../backend/dmatrix.h \
            ../backend/font.h \
            ../backend/gb2312.h \
            ../backend/gridmtx.h \
            ../backend/gs1.h \
            ../backend/large.h \
            ../backend/maxicode.h \
            ../backend/maxipng.h \
            ../backend/ms_stdint.h \
            ../backend/pdf417.h \
            ../backend/qr.h \
            ../backend/reedsol.h \
            ../backend/rss.h \
            ../backend/sjis.h \
            ../backend/zint.h \
            qzint.h

SOURCES += ../backend/2of5.c \
           ../backend/auspost.c \
           ../backend/aztec.c \
           ../backend/code.c \
           ../backend/code1.c \
           ../backend/code128.c \
           ../backend/code16k.c \
           ../backend/code49.c \
           ../backend/common.c \
           ../backend/composite.c \
           ../backend/dmatrix.c \
           ../backend/gridmtx.c \
           ../backend/gs1.c \
           ../backend/imail.c \
           ../backend/large.c \
           ../backend/library.c \
           ../backend/maxicode.c \
           ../backend/medical.c \
           ../backend/pdf417.c \
           ../backend/plessey.c \
           ../backend/postal.c \
           ../backend/ps.c \
           ../backend/qr.c \
           ../backend/reedsol.c \
           ../backend/render.c \
           ../backend/rss.c \
           ../backend/svg.c \
           ../backend/telepen.c \
           ../backend/upcean.c \
           ../backend/dllversion.c \
           ../backend/png.c\
           qzint.cpp


DESTDIR = ../../lib
DLLDESTDIR = ../../lib

include.path = $$[ZINT_INSTALL_HEADERS]
include.files = ../backend/zint.h qzint.h

target.path = $$[ZINT_INSTALL_LIBS]

INSTALLS += target include

